package com.guli.mall.pms.feign;
/*
 * @Author 罗
 * @date 2020/9/20 - 8:13 下午
 */

import com.guli.common.utils.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "product-category-service",path = "/pms/category")
public interface ProductCategoryFeignClient {

    @ApiOperation("根据categoryId查询出该category的id路径，返回从parentCategoryId到该categoryId的一个数组")
    @GetMapping("/findCategoryIdPath/{categoryId}")
    public List<Long> findCategoryIdPath(@PathVariable("categoryId") Long categoryId);

    @GetMapping("/getCategoryName/{categoryId}")
    public String getCategoryName(@PathVariable("categoryId") Long categoryId);
}
